/* 复习助手样式 */

/* 复习页面头部样式 */
.review-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: white;
}

.review-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.review-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.home-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 词汇网格样式 */
.word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.word-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.word-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.word-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.word-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 加载动画样式 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px 0;
}

.loading-spinner.hidden {
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 词汇详情样式 */
.word-details {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.word-details.hidden {
    display: none;
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.word-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.meanings {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.meaning-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.meaning-item h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.examples {
    padding: 20px;
}

.example {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.example:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.example:last-child {
    margin-bottom: 0;
}

.example-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 500;
}

.example-source {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
    text-align: right;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

/* 例句操作按钮容器 */
.example-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* 翻译按钮样式 */
.translation-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.translation-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.translation-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.translation-btn.active:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* 翻译内容样式 */
.example-translation {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.example-translation.hidden {
    display: none;
}

.translation-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: normal;
}

.highlight {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3);
}

/* AI功能样式 */
.example-ask-ai {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.example-ask-ai:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

/* 隐藏AI对话框 */
.ai-dialog {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .review-header {
        margin-bottom: 1.5rem;
    }
    
    .home-btn {
        position: static;
        margin-top: 1rem;
    }
    
    .word-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .word-card {
        padding: 25px 15px;
    }
    
    .word-details {
        padding: 20px;
        margin-top: 20px;
    }
    
    .word-header h2 {
        font-size: 2rem;
    }
    
    .example {
        padding: 15px;
    }
    
    .example-text {
        font-size: 1rem;
    }
} 